<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改留言板')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-mbinfo-edit">

            <div class="form-group">
                <label class="col-sm-2 control-label">标题：</label>
                <div class="form-control-static" th:text="${mbi.mbTopic}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">内容：</label>
                <div class="form-control-static" th:text="${mbi.mbContent}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">回复：</label>
                <div class="form-control-static" th:text="${mbi.disposeContent}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">处理状态：</label>
                <div class="form-control-static" th:text="${@dict.getLabel('mbs_dispose_status',mbi.disposeStatus)}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">留言类型：</label>
                <div class="form-control-static" th:text="${@dict.getLabel('mbs_message_board_type',mbi.mbType)}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">联系电话：</label>
                <div class="form-control-static" th:text="${mbi.phoneNumber}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">邮箱：</label>
                <div class="form-control-static" th:text="${mbi.email}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">提交时间：</label>
                <div class="form-control-static" th:text="${#dates.format(mbi.createTime, 'yyyy年MM月dd日 HH时mm分ss秒')}">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mbs/mbinfo";
        $("#form-mbinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-mbinfo-edit').serialize());
            }
        }
    </script>
</body>
</html>